package com.woniuxy.entitys;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.daos.TbDepartmentDao;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * tb_order
 * @author 
 */
@Data
public class TbOrder implements Serializable {
    /**
     * 订单id
     */
    private Integer oid;

    /**
     * 订单编号
     */
    private String onum;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /**
     * 返还时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date returnTime;

    /**
     * 床位id
     */
    private Integer bid;

    /**
     * 实际付款
     */
    private BigDecimal actualpay;

    /**
     * 消费者id
     */
    private Integer cid;

    /**
     * 付款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 订单状态
     */
    private Integer orderstatus;

    /**
     * 软删除
     */
    private Integer softdel;

    private String beiyong1;

    private String beiyong2;
    private TbCustomer customer;
    private TbBed bed;

    /**
     * selectOrderListByCid
     * 通过cid查询每个订单的详细信息，关联查询
     */
    private TbBed tbBed;
    private TbHospital tbHospital;
    private TbDepartment tbDepartment;
    private TbCustomer tbCustomer;
    private TbSection tbSection;

    public TbDepartment getTbDepartment() {
        return tbDepartment;
    }

    public void setTbDepartment(TbDepartment tbDepartment) {
        this.tbDepartment = tbDepartment;
    }

    public TbSection getTbSection() {

        return tbSection;
    }

    public void setTbSection(TbSection tbSection) {
        this.tbSection = tbSection;
    }

    public TbCustomer getTbCustomer() {
        return tbCustomer;
    }

    public void setTbCustomer(TbCustomer tbCustomer) {
        this.tbCustomer = tbCustomer;
    }

    public TbBed getTbBed() {
        return tbBed;
    }

    public void setTbBed(TbBed tbBed) {
        this.tbBed = tbBed;
    }

    private static final long serialVersionUID = 1L;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getOnum() {
        return onum;
    }

    public void setOnum(String onum) {
        this.onum = onum;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public Integer getBid() {
        return bid;
    }

}